﻿@page "/Homepage"
@using Carlife.Inf;
@using CarlifeService;
@using Commonality.DTO.AuthorityDTO;
@using ICarlifeService;
@using Microsoft.EntityFrameworkCore;
@using Models.Authority;
@using ICarlifeRespository;
@using CarlifeRespository;
@inject IUsersService basek;
@inject NavigationManager NavigationManager
@inject IJSRuntime jsRuntime;
<PageTitle>首页看板</PageTitle>
<h3>首页看板</h3>

@*<table class="table-bordered accountTable" width="90%">
    <thead>
        <tr>
            <td>客户名称</td>
            <td>手机</td>
            <td>性别</td>
            <td>身份证号</td>
            <td>婚姻状况</td>
            <td>既往工作单位</td>
            <td>工作时间</td>
            <td>部门</td>
            <td>职位</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in there)
        {
            <tr>
                <td>@item.ClientName</td>
                <td>@item.Phone</td>
                @if (@item.Sex == true)
                {
                    <td>男</td>
                }
                else
                {
                    <td>女</td>
                }
                <td>@item.IdNumber</td>
                <td>@item.MaritalStatus</td>
                <td>@item.FormerworkUnit</td>
                <td>@item.Worktime</td>
                <td>@item.Department</td>
                <td>@item.Position</td>
            </tr>
        }
    </tbody>
</table>
@code {
    private List<ClientDTO> there = new List<ClientDTO>();
    protected override async Task OnInitializedAsync()
    {
        there = basek.GetShow();
        await base.OnInitializedAsync();
    }
}*@